<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" 
CodeFile="Add_Broker.aspx.vb" Inherits="Admin_Add_Broker" title="CIMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr>
        <td align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial;">
            Broker Details</td>
        </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr><td style="font-size: 3px; background-color: #105BA4; height: 3px;"></td></tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
    
    <tr><td>

        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 30px;" align="left">
                    &nbsp;Broker Code:</td>
                <td style="width: 200px; height: 30px" align="left">
                    <asp:TextBox ID="Code_txt" runat="server" Width="186px" Enabled="False" TabIndex="1" MaxLength="20"></asp:TextBox></td>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 30px;" align="left">
                    &nbsp;Broker Name:</td>
                <td style="width: 380px; height: 30px" align="left">
                    <asp:TextBox ID="Name_txt" runat="server" Width="184px" TabIndex="2" MaxLength="200"></asp:TextBox></td>
            </tr>
            </table>            
        </td></tr>
        </table>
            
    </td></tr>
    
    <tr><td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr><td>        
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr><td>
            
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 28px;" align="left">
                        &nbsp;Address:</td>
                    <td style="width: 310px; height: 28px" align="left">
                        <asp:TextBox ID="Add1_txt" runat="server" Width="300px" TabIndex="3" MaxLength="500"></asp:TextBox></td>
                    <td style="width: 380px; height: 28px" align="left">
                        <asp:TextBox ID="Add2_txt" runat="server" Width="352px" TabIndex="4" MaxLength="500"></asp:TextBox>
                    </td>
                </tr>
                </table>
                
            </td></tr>
            <tr><td>
            
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 28px;" align="left">
                        &nbsp;City:</td>
                    <td style="width: 200px; height: 28px" align="left">
                        <asp:DropDownList ID="City_cmb" runat="server" Width="194px" TabIndex="5">
                        </asp:DropDownList>
                    </td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 28px;" align="left">
                        &nbsp;Country:</td>
                    <td style="width: 200px; height: 28px" align="left">
                        <asp:DropDownList ID="Country_cmb" runat="server" Width="190px" AutoPostBack="True" TabIndex="6">
                        </asp:DropDownList></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 80px; height: 28px;" align="left">
                        &nbsp;Zip Code:</td>
                    <td style="height: 28px; width: 100px;" align="left">
                        <asp:TextBox ID="Zip_txt" runat="server" Width="72px" TabIndex="7" MaxLength="20"></asp:TextBox></td>
                </tr>
                </table>
                
            </td></tr>
            </table> 
        </td></tr>
                
        <tr><td>        
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 10px;" align="left"></td>
            </tr>
            </table>
        </td></tr>
        
        <tr><td>
        
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px;" align="left">
                    &nbsp;Telephone No:</td>
                <td style="width: 200px" align="left"><asp:TextBox ID="T1_txt" runat="server" Width="186px" TabIndex="8" MaxLength="20"></asp:TextBox></td>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 12px;" align="left">
                    &nbsp;Mobile No:</td>
                <td style="width: 380px; height: 12px;" align="left"><asp:TextBox ID="M1_txt" runat="server" Width="184px" TabIndex="12" MaxLength="20"></asp:TextBox></td>
            </tr>
            </table>
            
        </td></tr>
        <tr><td>
        
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 24px;" align="left">
                    &nbsp;Fax No:</td>
                <td style="width: 200px; height: 24px;" align="left"><asp:TextBox ID="F1_txt" runat="server" Width="186px" TabIndex="15" MaxLength="20"></asp:TextBox></td>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 24px;" align="left">
                    &nbsp;Website:</td>
                <td style="width: 381px; height: 24px;" align="left"><asp:TextBox ID="Website_txt" runat="server" Width="352px" TabIndex="19" MaxLength="500"></asp:TextBox></td>
            </tr>
            </table>
            
        </td></tr>
        
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 28px;" align="left">
                    &nbsp;Start Date:</td>
                <td style="width: 200px; height: 28px" align="left">
                    <asp:TextBox ID="Start_txt" runat="server" Width="184px" TabIndex="20" MaxLength="10"></asp:TextBox><br />
                    <asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Overline="False"
                        Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label></td>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 28px;" align="left">
                    &nbsp;End Date:</td>
                <td style="width: 380px; height: 28px" align="left">
                    <asp:TextBox ID="End_txt" runat="server" Width="184px" TabIndex="21" MaxLength="10"></asp:TextBox><br />
                    <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Overline="False"
                        Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label></td>
            </tr>
            </table>            
        </td></tr>

        <tr><td>
        
            <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 40px">
            <tr>
                <td style="width: 540px; height: 40px;" align="center"></td>            
                <td style="width: 130px; height: 40px;" align="center"><asp:Button ID="Save_btn" runat="server" Text="Save" 
                    BackColor="Gainsboro" Font-Names="Verdana" Width="80px" TabIndex="22" /></td>
                <td style="width: 130px; height: 40px;" align="center"><asp:Button ID="Cancel_btn" runat="server" Text="Back" 
                    BackColor="Gainsboro" Font-Names="Verdana" Width="80px" TabIndex="23" CausesValidation="False" /></td>
            </tr>
            </table>
            
        </td></tr>
        <tr><td>        
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 110px; height: 3px;" align="left"></td>
            </tr>
            </table>
        </td></tr>        
        </table>
    </td></tr>

    </table>

    <table cellpadding="0" cellspacing="0" width="800px" style="font-family:Verdana; font-size:10pt">
        <tr>
        <td align="left" style="height: 16px"> Contacts: 
            <asp:Label ID="Results_lbl" runat="server"></asp:Label></td>
        <td align="right" style="height: 16px;"> 
            <asp:LinkButton ID="Add_btn" runat="server" ForeColor="Black"
                TabIndex="24" Font-Underline="True" CausesValidation="False">Add New Contact</asp:LinkButton></td>
        </tr>
    </table>

    <table cellpadding="0" cellspacing="0">
        <tr><td style="width: 800px;">
            <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="800px" Font-Size="Small" TabIndex="25" AllowSorting="True" AllowPaging="True" PageSize="5">
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                <AlternatingItemStyle BackColor="#D7DADF" />
                <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundColumn DataField="broker_contact_cd" Visible="False"></asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Name" DataField="Name">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Position" DataField="broker_dtl_position">
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Contact #" DataField="tel_no">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Email" DataField="email_address">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Mobile #" DataField="mobile_no">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:ButtonColumn CommandName="Edit" Text="Edit">
                        <HeaderStyle Width="40px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                    <asp:TemplateColumn>
                        <HeaderStyle Width="45px" />
                        <ItemTemplate>
                            <asp:LinkButton ID="Delete_btn" runat="server" CommandName="Delete" ForeColor="Black"  CausesValidation="false">Delete</asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender
                                ID="ConfirmButtonExtender1" runat="server" ConfirmText="Continue delete?" TargetControlID="Delete_btn">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </ItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:TemplateColumn>
                    <asp:ButtonColumn CommandName="View" Text="View">
                        <HeaderStyle Width="40px" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                </Columns>
            </asp:DataGrid></td></tr>
    </table>        
    <ajaxToolkit:TextBoxWatermarkExtender ID="Add1_TBWM" runat="server" Enabled="true"
        TargetControlID="Add1_txt" WatermarkCssClass="WaterMk" WatermarkText="No., Street, Floor, Bldg.">
    </ajaxToolkit:TextBoxWatermarkExtender>
    <ajaxToolkit:TextBoxWatermarkExtender ID="Add2_TBWM" runat="server" Enabled="true"
        TargetControlID="Add2_txt" WatermarkCssClass="WaterMk" WatermarkText="Brgy., Village, Area, District">
    </ajaxToolkit:TextBoxWatermarkExtender>
    <ajaxToolkit:MaskedEditExtender ID="Mask_StartDate" runat="server" Mask="99/99/9999"
        MaskType="Date" TargetControlID="Start_txt">
    </ajaxToolkit:MaskedEditExtender>
    <ajaxToolkit:MaskedEditExtender ID="Mask_EndDate" runat="server" Mask="99/99/9999"
        MaskType="Date" TargetControlID="End_txt">
    </ajaxToolkit:MaskedEditExtender>
    <ajaxToolkit:FilteredTextBoxExtender ID="Start_FTBE" runat="server" FilterType="Custom, Numbers"
        TargetControlID="Start_txt" ValidChars="/">
    </ajaxToolkit:FilteredTextBoxExtender>
    <ajaxToolkit:FilteredTextBoxExtender ID="End_FTBE" runat="server" FilterType="Custom, Numbers"
        TargetControlID="End_txt" ValidChars="/">
    </ajaxToolkit:FilteredTextBoxExtender>
    <asp:RequiredFieldValidator ID="rfv0" runat="server" ControlToValidate="Name_txt"
        ErrorMessage="Broker Name Required" ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="Country_cmb"
        ErrorMessage="Country Required" ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator
            ID="rfv2" runat="server" ControlToValidate="City_cmb" ErrorMessage="City Required"
            ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:CustomValidator ID="dtv1" runat="server" ClientValidationFunction="valDate"
        ControlToValidate="Start_txt" ErrorMessage="Invalid Start Date" ForeColor="White"
        ValidateEmptyText="True">.</asp:CustomValidator>
    <asp:CustomValidator ID="dtv4" runat="server" ClientValidationFunction="valDate"
        ControlToValidate="End_txt" ErrorMessage="Invalid End Date" ForeColor="White">.</asp:CustomValidator>
    <asp:ValidationSummary ID="ValidationSummary1"
                runat="server" ShowMessageBox="True" ShowSummary="False" />
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender0" runat="server"
        TargetControlID="rfv0">
    </ajaxToolkit:ValidatorCalloutExtender><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
        TargetControlID="rfv1">
    </ajaxToolkit:ValidatorCalloutExtender>
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
        TargetControlID="rfv2">
    </ajaxToolkit:ValidatorCalloutExtender><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server"
        TargetControlID="dtv1">
    </ajaxToolkit:ValidatorCalloutExtender><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server"
        TargetControlID="dtv4">
    </ajaxToolkit:ValidatorCalloutExtender>
</asp:Content>

